<template>
   <div>
     <strong>home</strong> <br>
     <strong>{{testFromZong}}</strong>  <br>
     <strong>{{testFromA}}</strong>
   </div>
</template>

<script>
import {mapState} from "vuex"
    export default {
        name: "home",
      // 分仓库的数据是以对象形式来显示的
        computed:{
          //分仓库也是对象
          ...mapState({
            testFromZong:state =>state.test,
            testFromA:state =>state.a.test,

          })
        }
    }
</script>

<style scoped>

</style>
